package com.kvn.dubbo.spi.javaspi;

import java.util.Iterator;
import java.util.ServiceLoader;

public class Client {

	public static void main(String[] args) {
		ServiceLoader<Search> s = ServiceLoader.load(Search.class);  
        Iterator<Search> searchs = s.iterator();  
        while (searchs.hasNext()) {
            Search curSearch = searchs.next();  
            String rlt = curSearch.search("test");  
            System.out.println("----->rlt:" + rlt);
        }  
	}

}
